		<div class="cart-display">
			<h2 class="smart" style="margin-top:0;font-size:18px"><?php echo $this->__('Shopping Cart');?></h2>
			<?php App::Component('appStore')->Helper('Data')->renderShoppingCart();?>
		</div>
		<?php
				echo App::Helper("Javascript")
						->validation_map(
										  Array(
												  '_errBg'=>ERROR_BACKGROUND,
												  '_dflBg'=>'#CFCFCF',
												  '_autoSubmit'=>'false',
												  '_errorMark'=>'inline',
												  '_errToolTips'=>'false'
												)
										 );
				echo App::Helper("Javascript")
						->ajax_submit(
										Array(
												 "form_name"=>"#post-checkout",
												 "debug"=>"true",
												 "auto_hide"=>"true",
												 "message_element"=>".message"
											 )
									 );
		?>
		<div class="checkout">
			<form method="post" class="app_form app_validation" id="post-checkout" action="<?php echo $this->baseurl("/appstore/completeCheckout") ?>">
			<div class="additionals" style="margin:10px 10px;background:#FFF;padding:10px">
				<?php if(  App::Helper('Config')->siteInfo('appstore_next_delivery') == 'Yes'):?>
					<input type="checkbox" value="Yes" name="data[Additional][nextdaydalivery]" /> <strong class="smart" style="font-size:18px;font-weight:normal">Special Delivery Next Day $<?php echo  App::Helper('Config')->siteInfo('appstore_next_delivery_cost'); ?></strong>
					<p>Please note that next day delivery is only offered on US orders. "Next Day" orders are guaranteed to be at your door within 48 hours!</p>
				<?php endif;?>
				<?php if(  App::Helper('Config')->siteInfo('appstore_signature') == 'Yes'):?>
				<input type="checkbox" value="Yes" name="data[Additional][signature]" /> <strong class="smart" style="font-size:18px;font-weight:normal">Add a Signature for just $<?php echo  App::Helper('Config')->siteInfo('appstore_signature_cost'); ?></strong>
				<?php endif;?>
			</div>
			<div class="c-left">
				<h2 class="smart" style="margin-top:0;font-size:18px"><?php echo $this->__("Shipping Information");?></h2>
				<?php

					$shippingcountry = App::Component('Appstore')->Helper('Data')->getShippingCountryList();

					App::Module("DataGrid")->clear()
										   ->setDisplay('FormListing')
										   ->addRow($this->__("First Name"),App::Load("Helper/Html")->inputTag("data[Shipping][fname]",$this->__("Type your first name"),array("class"=>"input-small check_notdefault",'id'=>'f_name','longdesc'=>'Please enter your first name')) )
										   ->addRow($this->__("Last Name"),App::Load("Helper/Html")->inputTag("data[Shipping][lname]",$this->__("Type your last name"),array("class"=>"input-small check_notdefault",'id'=>'l_name','longdesc'=>'Please enter your last name')) )
						                   ->addRow($this->__("Address line 1"),App::Load("Helper/Html")->inputTag("data[Shipping][address_line_1]",$this->__("Type address line 1"),array("class"=>"input-small check_notdefault",'id'=>'address_line_1','longdesc'=>'Please enter your address line 1')) )
						                   ->addRow($this->__("Address line 2"),App::Load("Helper/Html")->inputTag("data[Shipping][address_line_2]","",array("class"=>"input-small",'id'=>'address_line_2')) )
						                   ->addRow($this->__("City/Town"),App::Load("Helper/Html")->inputTag("data[Shipping][city]",$this->__("Type city/town name"),array("class"=>"input-small check_notdefault",'id'=>'city','longdesc'=>'Please enter your city/town name')) )
						                   ->addRow($this->__("State/Province"),App::Load("Helper/Html")->inputTag("data[Shipping][state]",$this->__("Type State/Province"),array("class"=>"input-small check_notdefault",'id'=>'state','longdesc'=>'Please enter your State/Province name')) )
						                   ->addRow($this->__("Postal/Zip Code"),App::Load("Helper/Html")->inputTag("data[Shipping][zipcode]",$this->__("Type Postal/Zipcode"),array("class"=>"input-small check_notdefault",'id'=>'zipcode','longdesc'=>'Please enter your Postal/Zip Code')) )
						                   ->addRow($this->__("Country"), App::Load("Helper/Html")->selectTag("data[Shipping][country]",$shippingcountry,"US",array("id" => "country","class"=>"select check_notempty",'longdesc'=>'Please select your country'))/*countryTag("data[Shipping][country]","US",array("id" => "country","class"=>"select check_notempty",'longdesc'=>'Please select your country'))*/ )
						                   ->addRow($this->__("Email"),App::Load("Helper/Html")->inputTag("data[Shipping][email]",$this->__("Type email address"),array("class"=>"input-small check_email",'id'=>'email')) )
										   ->Render();
				?>
				<br class="clearboth" />
			</div>
			<div class="c-right">
				<h2 class="smart" style="margin-top:0;font-size:18px"><?php echo $this->__("Payment Method");?></h2>
				<p><div class="inner message"></div></p>
				<p><?php echo $this->__("Select a payment method");?></p>
				<div class="inner"><?php echo App::Component('appStore')->Helper('Pgateway_Render')->renderPaymentMethods();?></div>
				<p><input type="submit" value="Continue Checkout" name="data[Payment][submit]" class="button" /></p>
			</div>
			</form>
		</div>